<%@page import="aex.domain.Puser"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="keywords" content="${webKeyWord}">
	<meta name="description" content="${webDescription}" />
	<title> ${webTitle} </title>
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
  	
	<link rel="stylesheet" type="text/css" href="expandStyle/aex_userPage.css">
	<link rel="stylesheet" type="text/css" href="expandStyle/index.css" />
	<link rel="stylesheet" type="text/css" href="expandStyle/Release_article.css" />
	
	<script type="text/javascript" src="systemJs/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="expandStyle/aex_userPage.js"></script>
	
	
	<link rel="stylesheet" href="plugin/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="plugin/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="plugin/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="plugin/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="plugin/kindeditor/plugins/code/prettify.js"></script>
	</head>
  <body>
    
    <!--导航栏-->
    
    <%
    	Puser user=(Puser)request.getSession().getAttribute("user");
    	if(user==null){
    		%>
    			<jsp:include page="/systemPage/headNavVisitor1.jsp"></jsp:include>		
    		<%
    	}else{
    		%>
				<jsp:include page="/systemPage/headNavVisitor2.jsp"></jsp:include>
    		<%
    	}
    %>
	
	
	
 <!--主要内容-->
  <div class="container">
  	 <form action="user/user_userEditorArticle.do" method="post">
  	 <input type="hidden" value="${article.arId }" name="arId" />
        <div id="editor_box">
           <h2>编辑文章</h2>
           <div class="editor_title">标题</div>
           <div class="editor_titleInput"><input name='arTitle' value='${article.arTitle}' type="text"></div>
           <div class="editor_title">摘要</div>
           <div class="editor_titleInput"><input name='arAbstract' value="${article.arAbstract }" type="text"></div>
           <div class="editor_title">内容</div>
           <div class="editor_content">
           <textarea name='arContent' >${article.arContent }</textarea>
              <div class="editor_info">
                 <div class="editor_return"><a href='visitor/visitor_article.do?arId=${article.arId }'>返回</a></div>
                 <input type="submit" value="修改" class="sub">
              </div>
           </div>
        </div>
     </form>
  </div>
	
    <!--网站底部-->
	<jsp:include page="/systemPage/footerVisitor.jsp"></jsp:include>
	<a href="adminPage/login.jsp">后台管理</a>
    <script type="text/javascript" src="expandStyle/album.js"></script> 
<script type="text/javascript">
	

var editor1;
KindEditor.ready(function(K) {
editor1 = K.create('textarea[name="arContent"]', {
		cssPath : 'plugin/kindeditor/plugins/code/prettify.css',
		uploadJson : 'visitorPage/upload_json.jsp',
		fileManagerJson : 'visitorPage/file_manager_json.jsp',
		allowFileManager : true,
		width : '99%',
		resizeType:0,
		height : '400px',
		afterBlur: function(){this.sync();}
	});
	prettyPrint();
});

</script>
    
  </body>
</html>
